//
//  TagCell.m
//  HomeIn
//
//  Created by dllo on 15/11/10.
//  Copyright © 2015年 ZZP. All rights reserved.
//

#import "TagCell.h"

@implementation TagCell

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self)
    {
        [self creataSubviews];
    }
    return  self;
}

- (void)creataSubviews
{
    
    //标签
    self.tagLabel = [[UILabel alloc] initWithFrame:CGRectMake(0 , self.contentView.frame.origin.y, (WIDTH - 45) / 6, self.contentView.frame.size.height)];
    self.tagLabel.backgroundColor = [UIColor black75PercentColor];
    self.tagLabel.textAlignment = NSTextAlignmentCenter;
    self.tagLabel.font = [UIFont systemFontOfSize:15];
    [self.contentView addSubview:self.tagLabel];
}

- (void)setCellWithStr:(NSString *)str
{
    //方法传值
    self.tagLabel.text = str;
}


@end
